package com.ldk.framework.service;

import java.util.List;

import com.ldk.base.framework.service.IBaseService;
import com.ldk.framework.entity.PushMessage;
import com.ldk.framework.push.PushTargetApp;
import com.ldk.framework.push.PushCustomMsg;

/**
* PushMessageService接口类
* @author xiangwl
*/
public interface IPushMessageService extends IBaseService<PushMessage> {
	/**
	 * 推送消息给用户
	 * @param dbKey
	 * @param toUser
	 * @param app
	 * @param title
	 * @param message
	 * @param msg
	 * @param aliasList
	 * @param saveToDb 推送消息是否保存到数据库
	 */
	Boolean pushToUser(String dbKey, PushMessage message, PushTargetApp app, PushCustomMsg msg, List<String> aliasList, final Boolean saveToDb);
}
